package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HocVien_HocPhi")
public class Tbl_QLDTTXA_HocVien_HocPhi implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_HocVien hocVienId = null;
   private Tbl_QLDTTXA_HocKyTrongNam hocKyId = null;
   private Integer soMonHoc;
   private Integer soMonHocDuocMien;
   private Integer soTinChi;
   private Double tienHaTang;
   private Double hocPhi;
   private Double tienPhaiDong;
   private Boolean trangThai;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hocVienId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocVien_tbl_QLDTTXA_HocVien_HocPhi")
   public Tbl_QLDTTXA_HocVien getHocVienId() {
	    return hocVienId;
   }
   public void setHocVienId(Tbl_QLDTTXA_HocVien hocVienId) {
	    this.hocVienId=hocVienId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hocKyId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocKyTrongNam_tbl_QLDTTXA_HocVien_HocPhi")
   public Tbl_QLDTTXA_HocKyTrongNam getHocKyId() {
	    return hocKyId;
   }
   public void setHocKyId(Tbl_QLDTTXA_HocKyTrongNam hocKyId) {
	    this.hocKyId=hocKyId;
   }

   public Integer getSoMonHoc() {
   	return soMonHoc;
   }
   public void setSoMonHoc(Integer soMonHoc) {
   	this.soMonHoc= soMonHoc;
   }

   public Integer getSoTinChi() {
   	return soTinChi;
   }
   public void setSoTinChi(Integer soTinChi) {
   	this.soTinChi= soTinChi;
   }

   public Double getTienHaTang() {
   	return tienHaTang;
   }
   public void setTienHaTang(Double tienHaTang) {
   	this.tienHaTang= tienHaTang;
   }

   public Double getHocPhi() {
   	return hocPhi;
   }
   public void setHocPhi(Double hocPhi) {
   	this.hocPhi= hocPhi;
   }

   public Double getTienPhaiDong() {
   	return tienPhaiDong;
   }
   public void setTienPhaiDong(Double tienPhaiDong) {
   	this.tienPhaiDong= tienPhaiDong;
   }

   public Boolean getTrangThai() {
   	return trangThai;
   }
   public void setTrangThai(Boolean trangThai) {
   	this.trangThai= trangThai;
   }
public Integer getSoMonHocDuocMien() {
	return soMonHocDuocMien;
}
public void setSoMonHocDuocMien(Integer soMonHocDuocMien) {
	this.soMonHocDuocMien = soMonHocDuocMien;
}
}//endClass 

